import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class LiczbaTest {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testShowIn2System() {
		assertEquals(Liczba.showIn2System(25),"11001");
		assertEquals(Liczba.showIn2System(24),"11000");
	}

	@Test
	public void testShowIn8System() {
		assertNotSame(Liczba.showIn8System(85),125);
	}

	@Test(timeout=1000)
	public void testShowIn10System() {
		assertEquals(Liczba.showIn10System(25),25);
		assertTrue(Liczba.showIn10System(25)>0);
		assertFalse(Liczba.showIn10System(25)<0);
	}

	@Test
	public void testShowIn16System() {
		assertNotNull(Liczba.showIn10System(25));
	}

}
